//
//  CommonBusinessModel.h
//  EUCIOS
//
//  Created by Khang on 4/9/13.
//  Copyright (c) 2013 Khang. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ASIHTTPRequest.h"
#import "ASINetworkQueue.h"
#import "ASIFormDataRequest.h"
#import "ASIDownloadCache.h"

@protocol CommonBusinessModelDelegate;
@interface CommonBusinessModel : NSObject <CommonBusinessLogic> {
}

@property (nonatomic, assign) CommonBusinessType businessType;
@property (nonatomic, assign) id<CommonBusinessModelDelegate> delegate;
@property (nonatomic, retain) CommonBusinessResponse* dataResponse;

- (id)initWithBusinessType:(CommonBusinessType)type withResponseDelegate:(id<CommonBusinessModelDelegate>)response;

@end


@protocol CommonBusinessModelDelegate <NSObject>
@optional
- (void)model:(CommonBusinessModel*)model didRequestDataset:(NSMutableArray*)dataSet;
- (void)model:(CommonBusinessModel*)model didFailWithError:(NSError*)error;
- (void)model:(CommonBusinessModel*)model didRequestWithErrorCode:(CommonBusinessErrorCode)errorCode;
@end